package com.commonClass.DateClass;


import java.util.Calendar;


public class TestDate {

    public static void main(String[] args) {
        Calendar calendar = Calendar.getInstance();//获取今天的日期对象
        System.out.println(calendar.get(Calendar.YEAR));//
        System.out.println(calendar.get(Calendar.DAY_OF_WEEK));//周日为第一天  4:周三
        System.out.println(calendar.get(Calendar.DAY_OF_MONTH));//
    }
}

    